<script setup lang='ts'>
import { downloadFileWithUrl } from '@fl/utils/fn'
import { toRefs } from 'vue'

const props = defineProps<{ fileList: any }>()
const { fileList } = toRefs(props)
</script>

<template>
    <a v-for="(item, index) in fileList"
       :key="index"
       href="javascript:void(0)"
       class="custom-underline text-16 text-blue-5 font-400 relative w-max cursor-pointer"
       @click="downloadFileWithUrl(item.url, item.name)"
    >
        {{ item.name }}
    </a>
</template>

<style lang="less" scoped>

</style>
